package com.springboot.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * <p>
 * 博客分类
 * </p>
 * 自定义属性注入abc=
 *
 * @author zyj
 * @since 2023-03-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("blog_sort")
public class BlogSortEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 分类描述
     */
    @TableField("sort_value")
    private String sortValue;

    /**
     * 分类标题
     */
    @TableField("sort_title")
    private String sortTitle;

    /**
     * 分类图片路径
     */
    @TableField("sort_img")
    private String sortImg;

    /**
     * 分类图片注释
     */
    @TableField("sort_img_alert")
    private String sortImgAlert;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
